package MP;

import MP.lexicalanalysis.*;

public class MPC {
    public static void main(String[] args) {
        if (args.length != 1) {
            System.err.println("usage: java MPC srcfile");
            System.exit(0);
          }
        String fileName = args[0];
        ErrorReporter reporter = new ErrorReporter();
        Scanner s = new Scanner(fileName,reporter);
        Token t = s.nextToken();
        while( t.Kind!=Token.EOF)
        {
        	System.out.println(t.toString());
        	t = s.nextToken();
        }
    	System.out.println(t.toString());    
     }
}
